using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using EntLibContrib.Validation.Configuration;
using EntLibContrib.Validation.Design.Nodes;

namespace EntLibContrib.Validation.Design
{
    class ValidationNodeMapRegistrar : NodeMapRegistrar
    {
        public ValidationNodeMapRegistrar(IServiceProvider serviceProvider)
            :base(serviceProvider)
        {
        }

        public override void Register()
        {
            base.AddMultipleNodeMap(Resources.ExternallyConfiguredObjectCollectionValidatorNodeName, typeof(ExternallyConfiguredObjectCollectionValidatorNode), typeof(ExternallyConfiguredObjectCollectionValidatorData));
            base.AddMultipleNodeMap(Resources.ExternallyConfiguredObjectValidatorNodeName, typeof(ExternallyConfiguredObjectValidatorNode), typeof(ExternallyConfiguredObjectValidatorData));
            base.AddMultipleNodeMap(Resources.CompositeRulesetValidatorNodeName, typeof(CompositeRulesetValidatorNode), typeof(CompositeRulesetValidatorData));
            base.AddMultipleNodeMap(Resources.EnumDefinedValidatorNodeName, typeof(EnumDefinedValidatorNode), typeof(EnumDefinedValidatorData));
        }
    }
}
